package com.zhiyou100.mapper;

import com.zhiyou100.model.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoomMapper {
    List<Room> listRoom(Map map); //room模糊分页查询

    int addRoom(Room room);//添加room

    int updateRoom(Room room);//更新room

    Room lookRoom(int id);

    int deleteAll(List<Integer> roomIds);

    int delete(int id);

    List<Room> findRoomByType(String type);


    int updateRoomStatus2(int rid);

    int updateRoomStatus(@Param("roomid") Integer roomid,@Param("starttime") String starttime,@Param("endtime") String endtime);
}
